<form action="/${orgi}/design/custom/newroweditdo/${report.id!''}/${reportModel.id!''}.html" data-toggle="ajax-form" data-target="#design_table" method="post" id="mainForm">
<input type="hidden" id="express" name="express" value="${data.express}">
<input type="hidden" id="rowindex" name="rowindex" value="-1">
<input type="hidden" id="id" name="id" value="${data.id!''}">

<div class="artCon">
	<div class="middleArt">
		<div class="artMain">
			<div class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span2"><h3>行标题：</h3></div>
				<div class="span4"><input type="text" value="${data.name!''}" name="name"></div>
				<div class="span2" style="text-align:right;"><h3 style="line-height:20px;">行类型：</h3></div>
				<div class="span3" style="display:inline-flex;">
					<input type="radio" value="sum" name="coltype" id="sumcol" checked="checked"><label for="sumcol">汇总行</label>
				</div>
			</div>
			<div class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span2"><h3>格式化：</h3></div>
				<div class="span8">
					<input type="text" value="${data.formatstr!'###,###.##'}" name="formatstr">
				</div>
			</div>
			<div class="mainTop row-fluid" style="padding-bottom:0px;">
				<div class="span2"><h3>分组聚合：</h3></div>
				<div class="span1">
					<select onchange="if($(this).val()=='true'){$('#func').show();}else{$('#func').hide();}" name="group">
						<option <#if data.group==false>selected="selected"</#if> value="false">否</option>
						<option <#if data.group==true>selected="selected"</#if> value="true">是</option>
					</select>
				</div>


				<div style="<#if data.group==false>display: none;</#if>padding:0 5px 0 5px;" id="func" class="span9">
					<div id="format" class="row-fluid">
						<div class="span2"><h3>聚合方式：</h3></div>
						<div class="span2">
							<select name="grouptype">
								<option value="sum" <#if data.grouptype=="sum">selected="true"</#if>>求和</option>
								<option value="avg" <#if data.grouptype=="avg">selected="true"</#if>>平均数</option>
								<option value="max" <#if data.grouptype=="max">selected="true"</#if>>最大值</option>
								<option value="min" <#if data.grouptype=="min">selected="true"</#if>>最小值</option> 
							</select>
						</div>
						<div class="span2"><h3>聚合维度：</h3></div>
						<div class="span5">
							<select name="groupdim">
								<#if coltitle??>
								<#list coltitle as dim>
								<#if dim_index lt coltitle?size-1>
								<option value="${dim}" <#if data.groupdim ?? && data.groupdim == dim>selected="selected"</#if>>${dim}</option>
								</#if>
								</#list>
								</#if>
							</select>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="bottomBg">
			<div class="btnWrap">
				<input type="submit" class="subButtonStyle" value="确认"/>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</div>
</div>
</form>